package com.chengxiaoxiao.ai_demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chengxiaoxiao.ai_demo.entity.KnowledgeBase;
import com.chengxiaoxiao.ai_demo.vo.form.KnowledgeBaseForm;


/**
 * 知识库 服务类
 *
 * @Description:
 * @Author: Cheng Xiaoxiao
 * @Date: 2023-08-01 03:06:36
 */
public interface KnowledgeBaseService extends IService<KnowledgeBase> {
    /**
     * 获取知识库详情
     *
     * @param id ID
     * @return 单个知识库详情
     */
    KnowledgeBase detailById(String id);

    /**
     * 增加知识库
     *
     * @param knowledgeBaseForm 知识库增加表单
     * @return 增加后的数据
     */
    KnowledgeBase saveKnowledgeBase(KnowledgeBaseForm knowledgeBaseForm);

    /**
     * 修改知识库
     *
     * @param knowledgeBase 知识库对象
     * @return 修改后的数据
     */
    KnowledgeBase updateKnowledgeBaseById(KnowledgeBase knowledgeBase);

    /**
     * 根据ID删除信息
     *
     * @param id ID
     */
    void deleteById(String id);
}